//学生信息的相关路由

import request from '@/api/request';

//设置 获取籍贯信息 的接口
export const req_area = ()=> request({
    method:'get',
    url:'/area',
    arg:{},
    headerType:''
})

//设置 提交学生个人信息 的接口
export const req_stu_info = (arg)=> request({
    method:'post',
    url:'/student_info',
    arg,
    headerType:'form'
})


//设置 根据学号  单人学生信息查询 api
export const req_stu_info_personal = (stu_id)=> request({
    method:'get',
    url:'/search_info_item',
    arg:{
        stu_id
    },
    headerType:''
})


//设置 所有学生信息 带头像的
export const req_all_info_head = ()=> request({
    method:'get',
    url:'/search_info',
    arg:{},
    headerType:''
})

//根据页码请求学生信息
export const req_page_stu_info = (currentPage)=> request({
    method:'get',
    url:`/pages/${currentPage}`,
    arg:{},
    headerType:''
})

//设置 所有学生信息 不带头像的
export const req_all_info_notHeader = ()=> request({
    method:'get',
    url:'/search_info_not',
    arg:{},
    headerType:''
})